﻿
using System; 
using System.Text;
using System.Collections.Generic; 
using System.Data;
using Kevin.Framework.Data.OrmMapping;
using Kevin.Framework.Validation;
/*------------------------------------------------------------------------
   苏州捷安信息科技有限公司 版权所有			
   文件名: TU_Project.cs
   作 者 : 席吉波
   日 期 : 2012-10-16
   备 注 : 当您对本文件更改时请写明修改人、修改日期以及事由
  ------------------------------------------------------------------------
*/
namespace JOIN.Rights.Model{
	 	//TU_Project
		[Serializable]
	[TableMapping("TU_Project")]
	public class ProjectInfo : EntityBase
	{
		#region Constructor
		
		public ProjectInfo()
			:this("")
		{}
		public ProjectInfo(string connectionKey)
			:base(connectionKey)
		{}
		
		#endregion
   		
      			
		private string _projectid;     
		/// <summary>
		/// 项目ID
        /// </summary>		
		[FieldMapping("ProjectID" )]		
		[NotNullValidator(MessageTemplate="项目ID不能为空")]
				public string ProjectID
        {
            get
            { 
            	return _projectid; 
            }
            set
            { 
            	if(_projectid != value)
            	{            	
            		base.OnPropertyChanged("ProjectID", _projectid, value);
            		_projectid = value; 
            	}
            }
        }        
				
		private string _projectname;     
		/// <summary>
		/// 项目名称
        /// </summary>		
		[FieldMapping("ProjectName" )]		
		[NotNullValidator(MessageTemplate="项目名称不能为空")]
				public string ProjectName
        {
            get
            { 
            	return _projectname; 
            }
            set
            { 
            	if(_projectname != value)
            	{            	
            		base.OnPropertyChanged("ProjectName", _projectname, value);
            		_projectname = value; 
            	}
            }
        }        
				
		private string _projectdesc;     
		/// <summary>
		/// 项目描述
        /// </summary>		
		[FieldMapping("ProjectDesc" )]		
				public string ProjectDesc
        {
            get
            { 
            	return _projectdesc; 
            }
            set
            { 
            	if(_projectdesc != value)
            	{            	
            		base.OnPropertyChanged("ProjectDesc", _projectdesc, value);
            		_projectdesc = value; 
            	}
            }
        }        
		   
	}
}